<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/8/20
  Time: 10:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>修改商品</title>
</head>
<body>
    <div style="text-align: center">
        <h1>修改商品</h1>
        <hr>
        <form action="${pageContext.request.contextPath}/goods/update" method="get">
            <input type="hidden" value="${goods.id}" name="id">
            商品名称:<input type="text" value="${goods.name}" name="name"><br>
            商品描述:<input type="text" value="${goods.describe}" name="describe"><br>
            商品价格:<input type="text" value="${goods.price}" name="price"><br>
            商品数量:<input type="text" value="${goods.quantity}" name="quantity"><br>
            商品标题:<input type="text" value="${goods.title}" name="title"><br>
            商品类型:<%--<input goodsType="text" value="${goods.goodsType.name}" name="goodsType">--%>
            <select name="type">
                <c:forEach items="${types}" var="type">
                    <option value="${type.name}">${type.name}</option>
                </c:forEach>
            </select>
            <br>

            <input type="submit" value="修改商品">
        </form>
    </div>
</body>
</html>
